<%-- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    request.setAttribute("contextPath", request.getContextPath());
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>订单详细</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
	<link rel="stylesheet" type="text/css" href="<c:url value='/jsps/css/order/desc.css'/>">
  </head>
  
<body>
<c:forEach items="${orderline}" var="orderline">
	<div class="divOrder">
		<span>订单号：${orderline.orderId }
<c:choose>
	<c:when test="${orderline.status eq 1 }">(下单未付款)</c:when>
	<c:when test="${orderline.status eq 2 }">(待发货)</c:when>
	<c:when test="${orderline.status eq 3 }">(待确认收货)</c:when>
	<c:when test="${orderline.status eq 4 }">(交易成功)</c:when>
	</c:choose>	
		　　　下单时间：${orderline.orderTime }</span>
	</div>
	<div class="divContent">
		<div class="div2">
			<dl>
				<dt>收货人信息</dt>
				<dd>${orderline.address }</dd>
			</dl>
		</div>
		<div class="div2">
			<dl>
				<dt>商品清单</dt>
				<dd>
					<table cellpadding="0" cellspacing="0">
						<tr>
							<th class="tt">商品名称</th>
							<th class="tt" align="left">单价</th>
							<th class="tt" align="left">数量</th>
							<th class="tt" align="left">小计</th>
						</tr>
<c:forEach items="${orderline}" var="item">
						<tr style="padding-top: 20px; padding-bottom: 20px;">
							<td class="td" width="400px">
								<div class="bookname">
								  <img align="middle" width="70" src="<c:url value='${item.book.image_b }'/>"/>
								  <a href="<c:url value='书的购买路径'/>">${item.book.bookName }</a>
								</div>
							</td>
							<td class="td" >
								<span>&yen;${orderline.price }</span>
							</td>
							<td class="td">
								<span>${orderline.bookIdQuantity }</span>
							</td>
							<td class="td">
								<span>&yen;${orderline.subTotal }</span>
							</td>			
						</tr>

					</table>
				</dd>
			</dl>
		</div>
		<div style="margin: 10px 10px 10px 550px;">
			<span style="font-weight: 900; font-size: 15px;">合计金额：</span>
			<span class="price_t">&yen;${orderline.total }</span><br/>
			</c:forEach>
<c:if test="${order.status eq 1 }">
	<a href="<c:url value='${contextPath }/payOrder/{orderId}'/>" class="pay">立即支付</a><br/>
</c:if>
<c:if test="${order.status eq 1 and btn eq 'cancel'}">
    <a id="cancel" href="<c:url value='${contextPath }/deleteOrder/{orderId}'/>">删除订单</a><br/>
</c:if>
<c:if test="${order.status eq 3 and btn eq 'confirm'}">
	<a id="confirm" href="<c:url value='${contextPath }/confirm/{orderId}'/>">确认收货</a><br/>
</c:if>	
		</div>
	</div>
</body>
</html>

 --%>